import Vue from 'vue'
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
import App from './App'
import pdf from 'vue-pdf'
import $appconfig from "@/common/config.js";
import store from './store/index'
import './uni.promisify.adaptor'
Vue.prototype.$store = store;
require('./util/request/index')(app);

// #ifndef VUE3
// 引入请求封装
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	store,
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif